package org.rqb.panel.partPanel;

import javax.swing.*;
import java.awt.*;

public class RequestHeadPanel extends JPanel {
    private JTextField keyField;
    private JTextField valueField;

    public RequestHeadPanel() {
        this.setLayout(new BorderLayout(5,5));

        keyField = new JTextField();
        valueField = new JTextField();

        this.add(keyField, BorderLayout.WEST);
        this.add(valueField, BorderLayout.CENTER);

        keyField.setPreferredSize(new Dimension(80, 25)); // key稍窄一些
    }

    public String getKey() {
        return keyField.getText().trim();
    }

    public String getValue() {
        return valueField.getText().trim();
    }
}



